country_decisions = {

	usa_nation = {
		major = yes
		potential = {
			OR = {
				tag = TEX
				tag = FLO
				tag = CAL
				tag = ALA
				tag = LOU
				tag = ILI
				tag = VRM
				AND = {
					tag = UHW
					capital_scope = {
						OR = {
							continent = north_america
							continent = south_america
						}
					}
				}
				NOT = { has_country_flag = changed_from_colonial_nation }
			}
			was_never_end_game_tag_trigger = yes
			is_nomad = no
			is_random_new_world = no
			NOT = { tag = HLR }
			NOT = { tag = PAP }
			OR = {
				is_former_colonial_nation = yes
				is_colonial_nation = yes
				AND = {
					NOT = {
						OR = {
							technology_group = north_american
							technology_group = mesoamerican
							technology_group = andean
							technology_group = high_american
							technology_group = south_american
						}
					}
					capital_scope = {
						colonial_region = colonial_eastern_america
						is_core = ROOT
					}
				}
			}
			colonial_eastern_america = {
				owned_by = ROOT
			}
			OR = {
				ai = no
				AND = {
					ai = yes
					num_of_cities = 3	
				}
			}
		}
		allow = {
			adm_tech = 10
			is_free_or_tributary_trigger = yes
			is_at_war = no
			capital_scope = {
				colonial_region = colonial_eastern_america
				is_core = ROOT
			}
			num_of_owned_provinces_with = {
				value = 10
				colonial_region = colonial_eastern_america
				is_city = yes
			}
			NOT = { exists = USA }
		}
		effect = {
			hidden_effect = {
				if = {
					limit = {
						NOT = { is_former_colonial_nation = yes }
					}
					ROOT = { save_event_target_as = old_tag_target }
				}
			}
			change_tag = USA
			swap_non_generic_missions = yes
			if = {
				limit = {
					NOT = { is_former_colonial_nation = yes }
				}
				restore_old_nation_on_formation_effect = yes
				remove_non_electors_emperors_from_empire_effect = yes
			}
			if = {
				limit = {
					NOT = { government_rank = 2 }
				}
				set_government_rank = 2
			}
			if = {
				limit = {
					culture_group = british
					NOT = { primary_culture = american }
				}
				change_primary_culture = american
			}
			if = {
				limit = { has_custom_ideas = no }
				country_event = { id = ideagroups.1 } #Swap Ideas
			}
			colonial_eastern_america = {
				limit = {
					NOT = { owned_by = ROOT }
				}
				add_permanent_claim = USA
			}
			add_country_modifier = {
				name = "centralization_modifier"
				duration = 7300
			}
			#can't have more than one elective monarchy in the game
			if = {
				limit = {
					has_reform = elective_monarchy
				}
				change_government = monarchy
				add_government_reform = feudalism_reform
			}
			add_prestige = 25
			set_country_flag = changed_from_colonial_nation
		}
		ai_will_do = {
			factor = 1
		}
	}

}
